<html xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"  
      xmlns:c="http://java.sun.com/jsp/jstl/core">  

    <ui:composition template="layout.xhtml">
        <ui:define name="corpo">

            <!--            <h1 style="font-size: 18px;">Atendimento Inicial</h1>-->
            <h:form>
                <p:messages id="msg"/>
                <div id="breadcrumb">
                    <p:commandLink  actionListener="#{managerIndex.redirect('index.xhtml')}" value="Inicio" update="@form" immediate="true"/> >
                    <p:commandLink  actionListener="#{managerIndex.redirect('indexProtocolo.xhtml')}" value="Protocolo" update="@form" immediate="true"/> >
                    <p:commandLink  actionListener="#{managerIndex.redirect('indexPagamento.xhtml')}" value="Pagamento" update="@form" immediate="true"/> >
                    <p:commandLink   value="Cadastrar" update="@form" immediate="true"/>
                </div>
                <p:panel header="Pagamentos">
                    <fieldset>
                        <legend>Dados</legend> 
                        <h:panelGrid columns="2"  styleClass="textAlignRight" columnClasses="textAlignRight" > 
                            <h:outputLabel value="Valor R$ :"/>
                            <p:inputText value="#{managerPagamento.pagamento.valor}" size="15" onkeypress="jQuery(this).autoNumeric({aSign: 'R$ ', aSep: '.', aDec: ','} );">
                                <f:convertNumber type="currency" />
                            </p:inputText>

                            <h:outputLabel value="Titulo :"/>
                            <p:inputText value="#{managerPagamento.pagamento.titulo}" size="30" />

                            <h:outputLabel value="Interessado :"/>
                            <p:inputText value="#{managerPagamento.pagamento.interessado}" size="30" />

                            <h:outputLabel value="Descricao :"/>
                            <p:inputTextarea value="#{managerPagamento.pagamento.descricao}" cols="70" rows="5" style="width: 400px;" />

                            <h:outputLabel value=""/>
                            <p:selectBooleanCheckbox itemLabel="Emitir Comprovante" value="#{managerPagamento.comprovante}" />
                        </h:panelGrid>
                        <br/>
                        <div class="buttonAction">
                            <p:commandButton id="id_submit"  icon="ui-icon-disk" actionListener="#{managerPagamento.salvar()}" value="Salvar"  update="@form" ajax="false" />
                            <p:commandButton id="cancelar" icon="ui-icon-arrowreturnthick-1-w" actionListener="#{managerVisualizarPagamento.redirect('indexPagamento.xhtml')}" value="Cancelar"  immediate="true" />  
                        </div>
                    </fieldset>
                </p:panel>

            </h:form>

        </ui:define>
    </ui:composition>

</html>